<?php
/*
+--------------------------------------------------------------------------
|   phpBIZ v3.0  full version
|   ========================================
|   by taft@wjl.cn yejun@wjl.cn
|   http://www.phpbiz.cn http://www.wjl.cn
|   all rights reserved
+---------------------------------------------------------------------------
|
|   > 最后修改日期：2005-4-30 2006-2-8
|
+--------------------------------------------------------------------------
*/
!class_exists('Debug') && exit('Forbidden');
$idx = new Caveat;
class Caveat
{
	function Caveat()
	{
		global $INCOME,$BIZ;

		if($INCOME[code]=="doadd") $this -> do_add();

		$BIZ -> output("Caveat.tpl");

	}

	function do_add()
	{
		global $INCOME,$BIZ,$DB;

		$ca = $INCOME['ca'];
		$ca['time'] = time();
		$ca['ip'] = $INCOME['IP_ADDRESS'];
		$DB -> db_form_insert("biz_caveat",$ca);
		$BIZ -> redirect_screen("恭喜！您已经成功提交了投诉举报，我们会即时处理。");

	}
}
?>